package cn.edu.pku.wxlib.common.dict;

/**
 * 订单状态,按实际流转状态排序
 */
public enum BookBorrowStatusEnum {
	BOOKBORROW_STATE_BORROW("图书外借",1),
	BOOKBORROW_STATE_REBORROW("图书续借",2),
	BOOKBORROW_STATE_RETURN("图书归还",3),
	BOOKBORROW_STATE_FINED("图书欠款",4),
	BOOKBORROW_STATE_LOST("图书丢失",5),
	;

	private String manageName;
	private int key;

	private BookBorrowStatusEnum(String manageName,  int key) {
		this.manageName = manageName;
		this.key = key;
	}

	public static String getManagerOrderStatusStr(int key) {
		for (BookBorrowStatusEnum a : BookBorrowStatusEnum.values()) {
			if (a.getKey() == key) {
				return a.manageName;
			}
		}
		return "未知";
	}

	public String getManageName() {
		return manageName;
	}

	public void setManageName(String manageName) {
		this.manageName = manageName;
	}

	public int getKey() {
		return key;
	}

	public void setKey(int key) {
		this.key = key;
	}

}
